package com.xuexie.mr;

import java.io.IOException;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

public class WeatherReducer extends Reducer<MyBean, Text, Text, NullWritable>{

	protected void reduce(MyBean arg0, Iterable<Text> arg1,
			Context arg2)
			throws IOException, InterruptedException {
		int c=0;
		for(Text t :arg1){
			if(c>=10){
				break;
			}
			arg2.write(t, NullWritable.get());
		}
	}
}
